import {Injectable} from '@angular/core';
import {HttpClient} from '../../../../providers/httpClient';
import {Config} from '../../../../providers/config';

@Injectable()
export class MarketingLineupDetailService {
  constructor(public httpClient: HttpClient,
              public config: Config,) {
  }

  // 删除任务
  deleteTask(id) {
    let postBody = {
      "module": "KSB",
      "method": "USP_A02_0210",
      "type": "USP",
      "format": "json",
      "params": {
        "task_id": id
      }
    };

    return this.httpClient.post(postBody);
  }

}
